<html>
    <body>
        <p id="result"></p>
    </body>
    <script type="text/javascript">
        $(function(){
            var username=$.cookie("username");
            $("#result").text(username);
        });
    </script>
</html>